package com.gao.shiro.demo.service;


import com.gao.shiro.demo.mapper.UserMapper;
import com.gao.shiro.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author gaofeng
 * date 2021年10月10日 16:15
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper ;

    @Override
    public User getUser(String name) {
        User user = userMapper.getUser(name);
        return user;
    }
}
